package com.ustc.hewei.nettyrpc2_0.common.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author hewei
 * @version 1.0
 * @description: 包的类型
 * @date 2022/9/5 20:19
 */

@AllArgsConstructor
public enum PackageType {

    REQUEST(0),
    RESPONSE(1);

    private final int code;

    public int getCode() {
        return code;
    }
}
